package com.cts.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 
 * @author tongshengchen
 * @TableName friend
 */
@TableName(value ="friend")
@Data
public class Friend implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 站点
     */
    @TableField(value = "website")
    private String website;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 公开或隐藏
     */
    @TableField(value = "is_published")
    private Boolean isPublished;

    /**
     * 点击次数
     */
    @TableField(value = "views")
    private Integer views;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}